<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, user-scalable=no, maximum-scale=1.0"/>
<title>分销中心粉丝列表</title>
<meta content="yes" name="apple-mobile-web-app-capable" />
<meta content="black" name="apple-mobile-web-app-status-bar-style" />
<meta content="telephone=no" name="format-detection" />
<link href="../assets/mobile/comm.css" rel="stylesheet" type="text/css" />
<link href="../assets/mobile/member.css?v=130726" rel="stylesheet" type="text/css" />
<link href="../assets/mobile/invite.css?v=130726" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="../assets/mobile/top.css">
<link rel="stylesheet" href="../assets/agile/css/ratchet/css/ratchet.min.css">
<link rel="stylesheet" href="../assets/agile/css/flat/flat.component.css">
<link rel="stylesheet" href="../assets/agile/css/flat/iconline.css">
<link rel="stylesheet" href="../assets/app/css/app.css" />
<script type="text/javascript" src="../script/api.js"></script>
<script type="text/javascript" src="../script/jquery.js"></script>
<script type="text/javascript" src="../script/jquery.form.js"></script>
<script type="text/javascript" src="../script/config.js"></script>
<script type="text/javascript" src="../script/local.js"></script>
<script type="text/javascript" src="../script/common.js"></script>
</head>

<body>
<!-- 栏目页面顶部 -->
<div id="ios-top-box">
    <div id="header" class="bar bar-nav">
    <div class="titlebar">
    <a href="javascript:appClose('allFansinfo',api);" style="margin-left:10px;" class="myclose"><i class="iconfont iconline-arrow-left"></i></a>
    <h1 class="title">我的会员</h1>
    </div>
    </div>
</div>
<!-- 内页顶部 -->

<section>
<div class="scroller create_goods">
<p style="text-align:center;padding:10px 0;display:none;">暂无粉丝</p>
</div>
</section>

<script type="text/javascript">
apiready = function(){
	$(function(){
		
	var userinfo = getUserinfo();
	if(!userinfo){
		$.PageDialog.fail('请登录用户');
		return;
	}else{
		var levelId = localData.get('level_id');
		if(!levelId){
			$.PageDialog.fail('数据不存在');
			return;
		}
		GetJPData(config.url+'/app.php?act=allfansinfo&uid='+userinfo.uid,{level_id:levelId},function(data){
			if(data['status']){
				var html = '';
				for(var i in data['userlist']){
					html += '<ul class="listitem group_listitem" item="'+data['userlist'][i]['uid']+'"><li>';
					html += '<img item="'+data['userlist'][i]['uid']+'" data-original="'+config.upload_url+'/'+data['userlist'][i]['img']+'" width="70" height="70" class="img lazy"/>';
					html += '<div class="text" style="line-height:25px;">';
					html += '<p>会员名称：<span style="color:#0577ab;">'+data['userlist'][i]['username']+'</span></p>';
					html += '<p>订单数量：'+data['userlist'][i]['countOrder']+'</p>';
					html += '<p>提成金额：'+data['userlist'][i]['countPrice']+'元</p>';
					html += '</div></li></ul>';
				}
				$('.create_goods').html(html);
				lyzimg();
				
				$('.group_listitem').bind('click',function(){
					var item_uid = $(this).attr('item');
					localData.set('item_uid',item_uid);
					randomSwitchBtn('allFansorder',api);
				});
				
			}else{
				$.PageDialog.fail(data['msg']);
			}
		});
	}
		
	});
};

</script>
</body>
</html>
